/*
 * @Descripttion: 
 * @Author: Cheng.Deng
 * @version: 
 * @Date: 2022-10-26 15:23:02
 * @LastEditors: Cheng.Deng
 * @LastEditTime: 2022-11-02 14:13:31
 */
import request from '@/utils/request'

const prePath = "/report";

/* 分页查询 */
export function getOutboundDetails(params) {
  return request({
    url: prePath + '/outboundDetails/page',
    method: "get",
    params
  })
}
export function getOutboundDetailsCustomizeList(data) {
  return request({
    url : prePath + '/outboundDetails/customizeList/page',
    method : 'post',
    data
  })
}
export function getOutboundDetailsCustomizeAll(data) {
  return request({
    url : prePath + '/outboundDetails/customizeList/all',
    method : 'post',
    data
  })
}
//获取历史库存分页数据
export function getOutboundDetailsCustomizeGroups(data) {
  return request({
    url : prePath + '/outboundDetails/customizeGroups',
    method : 'post',
    data
  })
}
// 打印
export function printOutboundDetails(data) {
  return request({
    url: prePath + `/outboundDetails/print`,
    method: 'post',
    data
  })
}


/* 分页查询 */
export function getWarehousingDetails(params) {
  return request({
    url: prePath + '/warehousingDetails/page',
    method: "get",
    params
  })
}
// 打印
export function printWarehousingDetails(params) {
  return request({
    url: prePath + `/warehousingDetails/print`,
    method: 'get',
    params
  })
}
export function outboundDetailsExcel(data) {
  return request({
    url: prePath + `/outboundDetails/excel`,
    method: 'post',
    data,
    responseType: 'blob'
  })
}
export function warehousingDetailsExcel(params) {
  return request({
    url: prePath + `/warehousingDetails/excel`,
    method: 'get',
    params,
    responseType: 'blob'
  })
}
